<template>
  <div>
    <el-container>
      <el-main>
            <div>
              <articleScrollPage v-bind:query="article"></articleScrollPage>
            </div>
        </el-main>
    </el-container>
  </div>
</template>

<script>
import articleScrollPage from "@/components/articleScrollPage";
import {getSearchArticles} from "@/api/article";

export default {
  name: "articleSearch",
  data(){
    return{
      article:{
        searchVal:''
      }
    }
  },
  components: {
    articleScrollPage
  },
  /*methods:{
    getSearchArticles() {
      var searchVal = this.$route.params.searchVal
      getSearchArticles(searchVal).then((res)=>{
        alert("aaa")
        if(res.data.data){
          this.article = res.data.data;
        }else{
          this.$message("系统错误")
        }
      }).catch((err)=>{
        this.$message("系统错误")
      })
    }
  },*/
  created() {
    var searchVal = this.$route.params.searchVal
    this.article.searchVal = searchVal
    // this.getSearchArticles()
  }

}
</script>

<style scoped>

</style>
